<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>Search{% if query %} Results{% endif %}</title>
	
</head>

<body>
	  <h1>Search</h1>
	  <form action="." method="GET">
	    <label for="q">Search: </label>
	    <input type="text" name="q" value="{{ query|escape }}">
	    <input type="submit" value="Search">
	  </form>

	{% if query %}
	    <h2>Results for "{{ query|escape }}":</h2>

	    {% if domains %}
		 <p>The following Domains matched your query:</p>
	      <ul>
	      {% for item in domains %}
	        <li>{{ item|escape }}</l1>
	      {% endfor %}
	      </ul>
	    {% else %}
	      <p>No Domains matched your query.</p>
	    {% endif %}

		{% if records %}
		 <p>The following Records matched your query:</P>
			<ul>
				{% for item in records %}
					<li>{{ item|escape }}</li>
				{% endfor %}
			</ul>
		{% else %}
		 <p>No Records matched your query.</p>
		{% endif %}

		{% if nameservers %}
		 <p>The following Nameservers matched your query:</P>
			<ul>
				{% for item in nameservers %}
					<li>{{ item|escape }}</li>
				{% endfor %}
			</ul>
		{% else %}
		 <p>No Nameservers matched your query.</p>
		{% endif %}

	{% endif %}

</body>
</html>
